package com.mzj.saas.mservice.property.entity;

import com.mzj.saas.mservice.sys.entity.IdEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 承租人与房屋关系表
 */
@Entity
@Table(name = "m_match_user_house")
public class MatchUserHouse extends IdEntity {

    @Basic
    @Column(name = "match_user_stock_id", nullable = true)
    private String matchUserStockId; //承租人id

    @Basic
    @Column(name = "house_id", nullable = true)
    private String houseId; //房屋id

    @Basic
    @Column(name = "member_user_id", nullable = true)
    private Long memberUserId; //成员表id

    @Basic
    @Column(name = "label", nullable = true)
    private Integer label; //标签 1个人承租人 2单位承租人

    @Basic
    @Column(name = "company_name", nullable = true)
    private String companyName; //单位名称

    @Basic
    @Column(name = "social_credit_number", nullable = true)
    private String socialCreditNumber; //单位社会信用证号

    @Basic
    @Column(name = "start_date", nullable = true)
    private Date startDate; //合同开始时间

    @Basic
    @Column(name = "end_date", nullable = true)
    private Date endDate; //合同结束时间

    @Basic
    @Column(name = "charge_mode", nullable = true)
    private Integer chargeMode; //1月 2季度 3年 4半年

    @Basic
    @Column(name = "create_time", nullable = true)
    private Date createTime; //操作时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMatchUserStockId() {
        return matchUserStockId;
    }

    public void setMatchUserStockId(String matchUserStockId) {
        this.matchUserStockId = matchUserStockId;
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public Integer getLabel() {
        return label;
    }

    public void setLabel(Integer label) {
        this.label = label;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getSocialCreditNumber() {
        return socialCreditNumber;
    }

    public void setSocialCreditNumber(String socialCreditNumber) {
        this.socialCreditNumber = socialCreditNumber;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getChargeMode() {
        return chargeMode;
    }

    public void setChargeMode(Integer chargeMode) {
        this.chargeMode = chargeMode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getMemberUserId() {
        return memberUserId;
    }

    public void setMemberUserId(Long memberUserId) {
        this.memberUserId = memberUserId;
    }
}
